// mypage/accCard/accCard.js



Page({
  /*页面的初始数据*/
  data: {
    card_list:[
      {name:'农业银行',text:'储蓄卡',bg:"https://ossdev0.jiabala.com/JKcw4XQ7fh483",icon:"/images/icon71.png",num:'0178'},
      {name:'工商银行',text:'储蓄卡',bg:"https://ossdev0.jiabala.com/ww5e3siDt2Wyb",icon:"/images/icon72.png",num:'0178'},
      {name:'建设银行',text:'储蓄卡',bg:"https://ossdev0.jiabala.com/pjrRSKJCajhJT",icon:"/images/icon80.png",num:'0178'}
    ],
    remove: false,
    pop_show: true,
    index: null
  },
  /*生命周期函数--监听页面加载*/
  onLoad: function (options) {

  },
  check_remove:function(){
    this.setData({remove: !this.data.remove})
  },
  open_mask:function(e){
    var index=e.currentTarget.dataset.index;
    this.setData({pop_show: !this.data.pop_show,index:index})
  },
  close_mask:function(){
    this.setData({pop_show: !this.data.pop_show,remove: !this.data.remove})
  },
  confirm_remove:function(){
    var that = this;
  },
  nav_add:function(){
    wx.navigateTo({
      url: '../addBankcard/addBankcard',
    })
  },
})